/*
 * Copyright (c) 2014,KJFrameForAndroid Open Source Project,张涛.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.example.tse.rbhttpservice.service;

/**
 * @author tse
 */
public abstract class RemoteServiceListenerT<T> {
    /**
     * Http Requeest PreStart
     */
    public void PreStart() {
    }

    /**
     * Http Requeest Callback   NetWork
     *
     * @param t HttpRequest返回信息
     */
    @Deprecated
    public void ok(T t) {
    }

    /**
     * Http Requeest Callback   NetWork-->Cache-->Default OB
     * alwayse have data
     *
     * @param t HttpRequest返回信息
     */
    public void okData(T t) {

    }


    /**
     * Http Requeest Callback   NetWork-->Cache-->Default OB
     * alwayse have data
     *
     * @param t HttpRequest返回信息
     */


    public void okData(T t, int fromWhere) {
    }


    /**
     * Http Requeest Cache Callback   Cache
     */
//    public void cacheData(T t) {
//    }

    /**
     * Http Requeest Failue
     *
     * @param errorNo 错误码
     * @param strMsg  错误原因
     */
    public void failue(int errorNo, String strMsg) {
    }

    /**
     * Http Requeest Finish
     */
    public void Finish() {
    }

    public void onMessage(String message) {

    }
}
